home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kopete / kopeteeventpresentation.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  1.6 KB  |  57 lines

  1. /*
  2.     kopeteeventpresentation.h - Kopete Custom Notify Data Object
  3.  
  4.     Copyright (c) 2004 by Will Stephenson     <lists@stevello.free-online.co.uk>
  5.  
  6.     Kopete    (c) 2002-2004 by the Kopete developers  <kopete-devel@kde.org>
  7.  
  8.     *************************************************************************
  9.     *                                                                       *
  10.     * This library is free software; you can redistribute it and/or         *
  11.     * modify it under the terms of the GNU Lesser General Public            *
  12.     * License as published by the Free Software Foundation; either          *
  13.     * version 2 of the License, or (at your option) any later version.      *
  14.     *                                                                       *
  15.     *************************************************************************
  16. */
  17.  
  18. #ifndef KOPETEEVENTPRESENTATION_H
  19. #define KOPETEEVENTPRESENTATION_H
  20.  
  21. #include <qstring.h>
  22.  
  23. #include "kopete_export.h"
  24.  
  25. namespace Kopete
  26. {
  27.  
  28. class KOPETE_EXPORT EventPresentation
  29. {
  30. public:
  31.     enum PresentationType { Sound, Message, Chat };
  32.     EventPresentation( const PresentationType type );
  33.     EventPresentation( const PresentationType type, 
  34.             const QString &content = QString::null,
  35.             const bool singleShot = false, const bool enabled = false );
  36.     ~EventPresentation();
  37.  
  38.     PresentationType type();
  39.     QString content();
  40.     bool enabled();
  41.     bool singleShot();
  42.  
  43.     void setContent( const QString &content );
  44.     void setEnabled( const bool enabled );
  45.     void setSingleShot( const bool singleShot );
  46.     QString toString();
  47. private:
  48.     PresentationType m_type;
  49.     QString m_content;
  50.     bool m_enabled;
  51.     bool m_singleShot;
  52. };
  53.  
  54. }
  55.  
  56. #endif
  57.